package com.lingrit.provider.service.app.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lingrit.provider.entity.ColunmModel;
import com.lingrit.provider.entity.CustomSql;
import com.lingrit.provider.mapper.CustomSqlMapper;
import com.lingrit.provider.service.app.ICustomSqlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomSqlServiceImpl extends ServiceImpl<CustomSqlMapper,CustomSql> implements ICustomSqlService {
    @Autowired
    private CustomSqlMapper customSqlMapper;

    @Override
    public String getIdMaxValue(CustomSql customSql) {
        return customSqlMapper.getIdMaxValue(customSql);
    }

    @Override
    public List<ColunmModel> getAllColunm(String dataBase,String table) {
        return customSqlMapper.getAllColunm(dataBase,table);
    }
}
